//
//  PWSCalendarView.h
//  PWSCalendar
//
//  Created by Sylar on 3/14/14.
//  Copyright (c) 2014 PWS. All rights reserved.
//
/////////////////////////////////////////////////////////////////////////////////////////////
#import <UIKit/UIKit.h>
#import "PWSHelper.h"
@class PWSCalendarView;
/////////////////////////////////////////////////////////////////////////////////////////////
@protocol PWSCalendarDelegate <NSObject>

@optional
- (void) PWSCalendar:(PWSCalendarView*)_calendar didSelecteDate:(NSDate*)_date;
- (void)chengeTheNumberOfRows:(NSInteger)TheNumberOfRows;
- (void)refreshView;
@end

/////////////////////////////////////////////////////////////////////////////////////////////
@interface PWSCalendarView : UIView
@property (nonatomic,assign)BOOL isHideBottom;
@property (nonatomic, strong) id<PWSCalendarDelegate> delegate;
@property (nonatomic, assign) enCalendarViewType      type;
@property (nonatomic, strong) NSDate*                 dateShow;
@property (nonatomic, strong) NSDate * selectDate;
@property (nonatomic, strong) UICollectionView*  m_view_calendar;
@property (nonatomic, strong) UICollectionViewFlowLayout *layout;
@property (nonatomic, assign) BOOL refreshFlag;

- (id) initWithFrame:(CGRect)frame CalendarType:(enCalendarViewType)pType;
- (void) didSelectedIndex:(NSInteger)_index;

@end
